from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.
class User(AbstractUser):
		phone= models.CharField(max_length=11, verbose_name='手机号',blank=True,null=True)
		avatar = models.ImageField(upload_to='avatars/',verbose_name='头像',blank=True,null=True)
		def __str__(self):
			return self.username
		class Meta:
			db_table='auth_user'  # 原来的表名
			verbose_name='用户'
			verbose_name_plural=verbose_name